﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 设置图像码流大小的请求
    /// </summary>
    /// <remarks>
    /// typedef struct
    /// {
    ///     T_HIPC_NET_HEADER	   head;
    ///     Uint8 channel;       
    ///     Uint32 bitrate;     //（100000-50000000）100K-50M
    /// }T_HIPC_VIDEO_BITRATE_REQ;
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct T_HIPC_VIDEO_BITRATE_REQ
    {
        #region Fields

        /// <summary>
        /// 网络协议数据头
        /// </summary>
        public T_HIPC_NET_HEADER head;

        /// <summary>
        /// 通道号
        /// </summary>
        public byte channel;

        /// <summary>
        ///（100000-50000000）100K-50M
        /// </summary>
        public UInt32 bitrate;

        #endregion
    }
}
